<template>
  <view class="good_block">
    <image class="good_img" src="@/assets/test/a1.png" mode="aspectFill" />
    <view class="good_info">
      <text class="h2">商品名称</text>
      <text class="det">商品分类</text>
      <view class="p_view">
        <!-- <view class="special">特价</view> -->
        <view class="price">￥39.9</view>
      </view>
    </view>
  </view>
</template>

<script setup>
import {} from "vue";
</script>

<style lang="scss" scoped>
.good_block {
  display: flex;
  height: 220rpx;
  display: flex;
  align-items: center;
  padding: 0 15rpx;

  .good_img {
    height: 100%;
    width: 176rpx;
    margin-right: 24rpx;
    padding-bottom: 30rpx;
  }
  .good_info {
    flex: 1 0;
    border-bottom: 1px solid #ebebeb;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    justify-content: space-between;
    padding-bottom: 20rpx;
    .h2 {
      font-weight: 500;
      font-size: 28rpx;
      color: #333333;
      line-height: 30rpx;
      margin-bottom: 7px;
      display: inline-block;
    }
    .det {
      font-weight: 400;
      font-size: 24rpx;
      color: #999999;
      line-height: 26rpx;
    }
    .p_view {
      margin-top: auto;
      margin-bottom: 0;

      .special {
        height: fit-content;
        width: fit-content;
        display: inline-block;
        border-radius: 2px;
        padding: 2px;
        font-weight: 400;
        font-size: 18rpx;
        color: #333333;
        line-height: 21rpx;
      }
      .price {
        font-weight: 500;
        font-size: 30rpx;
        color: #333333;
        font-family: pfm;
      }
    }
  }
}
</style>
